import collections
class Solution(object):
    def divideArray(self, nums):
        d = collections.Counter(nums)
        for key in d:
            if d[key] % 2 == 1:
                return False
        return True